package com.itheima.six;

public class Text6 {
    public static void main(String[] args) {
        BaseTeacher b = new BaseTeacher();
        b.setName("张三");
        b.setAge("23");
        System.out.println(b.getName() + "---" + b.getAge());
        b.teach();


        WorkTeacher w = new WorkTeacher("李四","24");
        System.out.println(w.getName()+"---"+w.getAge());
        w.teach();

    }
}
